package com.gzhryc.shared_device.iot.core.enums;

public enum EIOTType {

	ALIYUN(1, "阿里物联云"), HRYC_SMART(2, "浩睿洋诚物联云");

	private Integer index;
	private String note;

	EIOTType(Integer index, String note) {
		this.index = index;
		this.note = note;
	}

	public Integer index() {
		return index;
	}

	public String note() {
		return note;
	}

	public String getNote() {
		return note;
	}

	public static String note(Integer index) {
		EIOTType[] temp = EIOTType.values();
		for (int i = 0; i < temp.length; i++) {
			EIOTType item = temp[i];
			if (item.index.equals(index)) {
				return item.note;
			}
		}
		return null;
	}
}
